libxenlight: use watch and select in libxl_wait_for_device_model
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 18:42:03 +0000 (18:42 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 18:42:03 +0000 (18:42 +0000)
commit18ba65e5f893ba7070ddd6372c2293a185c35a8d
tree55800bb8ee12fd3752c085ea8101c4a157aa5062
parente510765e70d882b5dc7b3ddc4226a38b34e6534a
libxenlight: use watch and select in libxl_wait_for_device_model

This patch reimplements libxl_wait_for_device_model using a xenstore
watch and a select loop.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h